package dev.wanheng.springjwtlogin.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;

import java.util.Date;

@Data
public class UserDto {
    private String username;
    private String password;
    private String phone;
    private String ip;

    @JsonFormat(locale="zh",timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createdAt;
}
